<?php echo $header; ?><?php echo $column_left; ?><?php echo $column_right; ?>
<div id="content"><?php echo $content_top; ?>
  <h1><?php echo $heading_title; ?></h1>
  <?php if ($success) { ?>
  <div class="success"><?php echo $success; ?></div>
  <?php } ?>
  <?php if ($error_warning) { ?>
  <div class="warning"><?php echo $error_warning; ?></div>
  <?php } ?>
  <div class="login-content">
    <div class="left">
      <h2><?php echo $text_returning_customer; ?></h2>
      <form action="<?php echo $action; ?>" method="post" enctype="multipart/form-data" id="login">
        <div class="content">
          <b><?php echo $entry_email; ?></b><br />
          <input type="text" name="email" value="" size="40"/>
          <br />
          <br />
          <b><?php echo $entry_password; ?></b><br />
          <input type="password" name="password" value="" size="40"/>
          <br />
          <a href="<?php echo $forgotten; ?>"><?php echo $text_forgotten; ?></a><br />
          <br />
          <a onclick="$('#login').submit();" class="button"><span><?php echo $button_login; ?></span></a>
          <?php if ($redirect) { ?>
          <input type="hidden" name="redirect" value="<?php echo $redirect; ?>" />
          <?php } ?>
        </div>
      </form>
    </div>
  	<?php if($open_id_enabled){?>
    <div class="right">
      <h2><?php echo $text_open_id;?></h2>
      <div class="content" style="min-height: 10px">
      	<?php if($open_id_auth_yahoo){?>
      	<a target="_blank" rel="noindex,nofollow"
      		onclick="openLoginWindow('yahoo');"
      	>
	      	<img src="portal/view/theme/default/image/open_id_yahoo.png" style="vertical-align:middle"/>
      	</a>
      	<?php }?>
      	<?php if($open_id_auth_google){?>
      	&nbsp;
      	<a target="_blank" rel="noindex,nofollow"
      		onclick="openLoginWindow('google');"
      	>
      	<img src="portal/view/theme/default/image/open_id_google.png" style="vertical-align:middle"/> 
      	</a>
      	<?php }?>
      </div>
    </div>
    <?php }?>
  </div>
  <?php echo $content_bottom; ?></div>
<script type="text/javascript"><!--
function openLoginWindow(provider){
	url = '<?php echo $open_id;?>&provider=' + provider;
	loginWindow=window.open(url,'openIdWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=500,height=500');
	loginWindow.moveTo(screen.width/2 - 250, 100);
}

$('#login input').keydown(function(e) {
	if (e.keyCode == 13) {
		$('#login').submit();
	}
});
//--></script>
<?php echo $footer; ?>